home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / aint.z / aint
Encoding:
Text File  |  2002-10-03  |  2.4 KB  |  66 lines

  1. AINT(3I)                                              Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      AAIINNTT, DDIINNTT, QQIINNTT - Performs truncation to integer
  6.  
  7. SSYYNNOOPPSSIISS
  8.      AAIINNTT (([AA==]_a[,,[KKIINNDD==]_k_i_n_d]))
  9.      DDIINNTT (([AA==]_a))
  10.      QQIINNTT (([AA==]_a))
  11.  
  12. IIMMPPLLEEMMEENNTTAATTIIOONN
  13.      UNICOS, UNICOS/mk, IRIX systems
  14.  
  15.      CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
  16.  
  17. SSTTAANNDDAARRDDSS
  18.      Fortran
  19.  
  20.      Fortran extension:  QQIINNTT
  21.  
  22. DDEESSCCRRIIPPTTIIOONN
  23.      AAIINNTT is the generic function name; the others are specifics.  These
  24.      are elemental intrinsic functions.  They accept the following
  25.      arguments:
  26.  
  27.      _a         Specify a single-precision, double-precision, or
  28.                quad-precision argument.  The data type and kind type for
  29.                single-precision, double-precision, and quad-precision
  30.                values differ depending on your platform.  For
  31.                platform-specific information, see the TERMINOLOGY section
  32.                of the IINNTTRROO__IINNTTRRIINN(3I) man page.
  33.  
  34.      _k_i_n_d      An integer scalar value.  Must be a kind type allowed for _a.
  35.                This argument is not accepted by the MIPSpro Fortran 77
  36.                compiler.
  37.  
  38.      These functions truncate the fractional parts of their arguments, and
  39.      the fractional parts are lost (not rounded).
  40.  
  41. NNOOTTEESS
  42.      The AAIINNTT and DDIINNTT intrinsic function names can be passed as arguments;
  43.      the other cannot.
  44.  
  45. RREETTUURRNN VVAALLUUEESS
  46.      The return values are of type real and have a kind type as specified
  47.      by the _k_i_n_d argument, if present.  If _k_i_n_d is unspecified, the kind
  48.      type is that of _a.
  49.  
  50.      AAIINNTT truncates the fractional part of its real argument.
  51.  
  52.      DDIINNTT truncates the fractional part of its double-precision argument.
  53.  
  54.      QQIINNTT truncates the fractional part of its quad-precision argument.
  55.  
  56. EEXXAAMMPPLLEESS
  57.      The following examples show the results of calling AAIINNTT with positive
  58.      and negative arguments:
  59.  
  60.           AINT(3.4) = 3.0
  61.           AINT(-3.4) = -3.0
  62.  
  63. SSEEEE AALLSSOO
  64.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  65.      man page.
  66.